﻿namespace Blaze.ConfigExporters
{
    using System.Text;
    using ConfigExportTool;

    /// <summary>
    /// 导出异常：错误的父节点配置。
    /// </summary>
    internal class InvalidNotificationParentException : ExportException
    {
        public InvalidNotificationParentException(int childId)
            : base(null)
        {
            mChildId = childId;
        }

        protected override void AppendDetailMessage(StringBuilder buffer)
        {
            buffer.AppendFormat("错误的父节点配置\r\n 子节点编号：{0}", mChildId);
        }

        private readonly int mChildId;
    }
}